package card;

public class Card {
    private String suit;//花色
    private int rank;//数字

    public Card() {
    }

    public Card(String suit, int rank) {
        this.suit = suit;
        this.rank = rank;
    }

    /**
     * 获取
     * @return suit
     */
    public String getSuit() {
        return suit;
    }

    /**
     * 设置
     * @param suit
     */
    public void setSuit(String suit) {
        this.suit = suit;
    }

    /**
     * 获取
     * @return rank
     */
    public int getRank() {
        return rank;
    }

    /**
     * 设置
     * @param rank
     */
    public void setRank(int rank) {
        this.rank = rank;
    }

    @Override
    public String toString() {
        return suit+": "+rank;
    }
}
